package com.freejava.myblog.controller;

import com.freejava.myblog.annotation.PassToken;
import com.freejava.myblog.annotation.UserLoginToken;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestAnnController {

    @PassToken
    @RequestMapping("/pass")
    public String testPass() {
        return "pass";
    }

    @UserLoginToken
    @RequestMapping("/token")
    public String testToken() {
        return "token check";
    }
}
